<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			
			var age = 100;
			var pi = 3.1415926;
			
			//算术运算符
			
			var num1 = 100;
			var num2 = 5;
			var num3 = 5.0;
			var num4 = 3.5;
			var num5 = 3;
			console.log("num1: "+num1);
			console.log("num2: "+num2);
			console.log("num3: "+num3);
			console.log("num1+num2: "+(num1+num2));
			console.log("num1-num2: "+(num1-num2));
			console.log("num1*num2: "+(num1*num2));
			console.log("num1/num2: "+(num1/num2)); // 20
			console.log("num1/num3: "+(num1/num3)); // 20
			console.log("num1/num4 "+(num1/num4)); // 28.5.....
			console.log("num1/num5 "+(num1/num5)); //33.33333
			
			console.log("100/3 "+(num1%num5)); // 
			
			// age = age+1;
			// console.log("age: "+age)
			var num6 = 5;
			console.log("num6: "+num6)
			num6++; //  num6 =   num6 +1;
			console.log("num6++: "+num6)	
			
			
			var num7 = 5;
			console.log("num7: "+num7)
			num7--; //  num7 =   num7 - 1;
			console.log("num7--: "+num7)	;
			
			
			
			var num8 = 8;
			/**
			 * console.log("num8++: "+   num8   ))   ;// num8++:  8
			 * num8  = num8 +1;
			 */
			
			// console.log("num8++: "+  (  num8++   ))   ;// 8
			// console.log("num8:"+num8); //9
			
			
			/**
			 * num8  = num8 +1;
			 * console.log("num8++: "+   num8   ))   ;// num8++:  8
			 */
			console.log("++num8: "+  (  ++num8   ))   ;  // 9
			console.log("num8:"+num8); //9
			
			
			
			//字符串的 +  任何变量跟字符串相加都变成字符串的拼接
			
			console.log("'abc'+10 :"+('abc'+10));
			console.log("num1+num5 "+100+5);   //'num1+num5 100'+5      num1+num5 1005 //纯字符串拼接，没有数学运算
			console.log("num1+num5 "+(100+5));   //'num1+num5 105     
			
			
			// var num9 = 3;
			// var success = true;
			// var fail = false;
			
			
			//true false 参与算数运算的时候，会转成数值类型， true ：1 false：0
			console.log("3+true="+(3+true));
			console.log("3+false="+(3+false));
			
			var result = "hello success is : "+true;
			console.log(result);
			
			console.log("typeof result:"+(typeof result))
			console.log("typeof result:"+(	typeof( result) ))
			
			console.log("typeof(2): "+typeof(2))
			console.log("typeof(2.5): "+typeof(2.5))
			console.log("typeof(true): "+typeof(true))
			console.log("typeof(false): "+typeof(false))
			
			
			
			
		</script>
	</head>
	<body>
		
		
		
		
		
		
		
	</body>
</html>
